using System;
using System.Collections.Generic;
using System.Text;

namespace Musicman.Entities
{
	public class Searchfile
	{
		private long? searchfileid;
		private long? searchfolderid;
		private string name;
		private DateTime? changetime;
        private long length;
        private Searchfolder folder;
        private long searchSequence;

        public Searchfile(Searchfolder parent)
        {
            this.folder = parent;
            this.Searchfolderid = parent.Searchfolderid;
        }

        public Searchfile()
        {

        }

        public void CopyProperties(Searchfile file)
        {
            this.name = file.name;
            this.changetime = file.changetime;
            this.length = file.length;
            this.folder = file.folder;
        }

        public Searchfolder Folder
        {
            get { return folder; }
            set { folder = value; }
        }

		public long? Searchfileid
		{
			get { return searchfileid; }
			set { this.searchfileid = value; }
		}
        public long? Searchfolderid
		{
            get { return searchfolderid; }
            set { this.searchfolderid = value; }
		}
		public string Name
		{
			get { return name; }
			set { this.name = value; }
		}
		public DateTime? Changetime
		{
			get { return changetime; }
			set { this.changetime = value; }
		}

        public long Length
        {
            get { return length; }
            set { length = value; }
        }

        public long SearchSequence
        {
            get { return searchSequence; }
            set { searchSequence = value; }
        }
	}
}
